package com.stan.common;

import java.util.Random;

public class TaskUtils {
    /**
     * 生成TaskName
     * @return
     */
    public static String genTaskName(boolean isTest){
        Random random = new Random();
        String result = null;
        if(isTest){
            result = "test-" + random.nextInt(10000)+random.nextInt(10000);
        }else{
            result = "task-" + random.nextInt(10000) + random.nextInt(10000);
        }
        return result;
    }



}
